package com.ytf.core.common;

import cn.hutool.cache.impl.TimedCache;
import com.ytf.core.constants.UserAndRoleAndPermissionConstants;
import com.ytf.core.web.pojo.vo.PermissionVo;

/**
 * @author YTF
 * @className RoleMemoryCache
 * @date 2025/5/28 20:03
 * @description
 */
public class PermissionMemoryCache extends AbstractMemoryCacheOperator<PermissionVo> {

    public PermissionMemoryCache(TimedCache<String, PermissionVo> timedCache) {
        super(timedCache);
    }

    @Override
    public String getCommonKeyPrefix() {
        return UserAndRoleAndPermissionConstants.PERMISSION_CACHE_PREFIX;
    }

}